package com.ruoyi.order.station.operate.cmd;

import com.github.s7connector.api.annotation.S7Variable;
import com.github.s7connector.impl.utils.S7Type;
import lombok.Data;

@Data
public class OP09 {    //产品型号
    @S7Variable(byteOffset=0, arraySize=20, type= S7Type.BYTE)
    public byte[] typeNo;
    //产品零件号
    @S7Variable(byteOffset=20, arraySize=80, type= S7Type.BYTE)
    public byte[] partIdentifier;
    //设备操作模式
    @S7Variable(byteOffset=100, bitOffset=0, type= S7Type.WORD)
    public Integer operationMode;
    //设备在原点
    @S7Variable(byteOffset=102, bitOffset=0, type= S7Type.WORD)
    public Integer inHomePos;
    //工作流程号
    @S7Variable(byteOffset=104, bitOffset=0, type= S7Type.WORD)
    public Integer sequencer;
    //设备报警
    @S7Variable(byteOffset=106, bitOffset=0, type= S7Type.WORD)
    public Integer alarm;
    //托盘号
    @S7Variable(byteOffset=108, arraySize=16, type= S7Type.BYTE)
    public byte[] wpcId;
}
